package com.itheima.day20.demo07;

import java.util.function.Predicate;

public class PredicateDemo {
    public static void main(String[] args) {
        String name = "ajahsgs";
        boolean boo = checkString(name, e -> e.contains("a"));
    }

    public static boolean checkString(String str, Predicate<String> predicate) {
        return predicate.test(str);
    }
}
